home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Light ROM 1
/
LIGHT-ROM 1 (Amiga Library Services)(1994).iso
/
ffdisks
/
d919.lha
/
BBBF
/
FileVirLib
/
ForYouToRead
< prev
next >
Wrap
Text File
|
1993-10-04
|
3KB
|
107 lines
Some info for programmers and ordinary users:
* When using the '_LVORemoveLinks' function,
you have to load the entire file,
and install the right file-size.
Or else the library will give false values.
* Don't crunch the library or anything like
that (ie. processing the hunks and so on)
or else the library will not be avaiable
to use, because the library checks itself on start-
up for viruses, and alterings.
* The functions using the FileInfection field
(ie. _LVORemoveLinks and _LVOGetFileVName)
will, if there is an infection ofcouse,
set the FileInfection field.
The MemoryInfection field will, when put
into use, act in thesame way.
* When you want to write back the non-infected
file, you have to get the new start of the file
(the file will most likely not be at thesame
place in memory anymore!) through the
'RL_BufferPtr' and the new filelength through
the 'RL_BufferLen' field.
* The 'RL_Status' field is not put into use at time
writing. But in the future this will give errors
and other messages.
There are currently no checks for errors.
(Actually there are some internal ones, but
the user of the library wont be able to
see/use them!)
When an infected file has a bad hunk-structure or like
this file will be reported to be NON-infected.
(But this is not to bad really, because this
means the file wont be able to run, at all)
* When using the '_LVOGetFileVName' function you only have
to load the first dos-hunk.
The library will be able to dectect if the file is infected,
on that only).
* '_LVOGetFileVName' function will only find ONE link
(but then you know if the file is infected or not,
and have the name, and that is by my oppinion the most
important).
When using the '_LVORemoveLinks' this will also find
second/third/fourth/fifth links and so on.
* Some information about the fields that will help
your programming:
TRUE =0x0000 (=NULL; 0)
FALSE =0xffff (= -1)
READONLY fields:
Struct *RL_FileInfection (Link to a fileinfection node)
Struct *RL_MemoryInfection (Not in use)
APTR RL_SectorVName (Name of virus, that infected the
current data-sector.
This field is NULL when processing
sector 880)
UWORD RL_SectorInfec (If the current data-block is infected
TRUE/FALSE)
UWORD RL_NeedsRepair (Some viruses set this field so you
will know if the current disk may be
attacked and needs a repair, that
can heal thedisk. SADDAM+Clone(s)
sets this field TRUE/FALSE).
UWORD RL_Status (Not in use)
UWORD Res0
UWORD Res1
UWORD Res2
UWORD Res3
READ/WRITE fields:
APTR RL_BufferPtr (Where in memory the current file/
data-block or like is at the moment)
ULONG RL_BufferLen (The length of the datablock/current
file)
ULONG RL_SectorOffset (If you are to use the
'_LVODecodeDataBlock' function,
you have to install this field.
It is just the IOSTD->Offset field)
READONLY fields:
Struct *RL_VirusList (a list of all the viruses the
current version of 'removelink.lib'
can handle/remove)
ULONG RL_VirusesCovered (Number of viruses covered.
Clone(s) counts as an own viruskind)